package com.paipaideli.common.utils;

import java.util.List;

public class JsutmentUtil {

    /**
     * 手机号码 判断正则表达式
     *
     * @param mobiles
     * @return
     */
    public static boolean isMobileTrue(String mobiles) {
        String path = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$";
        return mobiles.matches(path);
    }


    /**
     * 密码 判断正则表达式
     *
     * @param password
     * @return
     */
    public static boolean isPasswordTrue(String password) {
        String reg = "(?![^a-zA-Z0-9]+$)(?![^a-zA-Z/D]+$)(?![^0-9/D]+$).{6,12}$";
        return password.matches(reg);
    }
}
